package com.regent.central.bill.core;

import com.regent.central.bill.common.ActionType;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "central_bill_delivery_action")
public class DeliveryAction {
    /**
     * 发货单一级数据关系记录ID
     */
    @Id
    private String id;

    /**
     * 发货单ID
     */
    @Column(name = "central_bill_delivery_id")
    private String centralBillDeliveryId;

    /**
     * 一级数据类型
     */
    @Column(name = "action_type")
    private ActionType actionType;

    /**
     * 一级数据ID
     */
    @Column(name = "action_id")
    private String actionId;

    /**
     * 已撤销
     */
    private Boolean canceled;

    /**
     * 记录版本
     */
    private Integer version;

    /**
     * 创建时间
     */
    @Column(name = "date_created")
    private Date dateCreated;

    /**
     * 创建人员
     */
    @Column(name = "user_created")
    private String userCreated;

    /**
     * 最后更新时间
     */
    @Column(name = "last_updated")
    private Date lastUpdated;

    /**
     * 最后更新人员
     */
    @Column(name = "user_updated")
    private String userUpdated;

    /**
     * 删除时间
     */
    @Column(name = "time_deleted")
    private Long timeDeleted;

    /**
     * 删除人员
     */
    @Column(name = "user_deleted")
    private String userDeleted;

    /**
     * 获取发货单一级数据关系记录ID
     *
     * @return id - 发货单一级数据关系记录ID
     */
    public String getId() {
        return id;
    }

    /**
     * 设置发货单一级数据关系记录ID
     *
     * @param id 发货单一级数据关系记录ID
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取发货单ID
     *
     * @return central_bill_delivery_id - 发货单ID
     */
    public String getCentralBillDeliveryId() {
        return centralBillDeliveryId;
    }

    /**
     * 设置发货单ID
     *
     * @param centralBillDeliveryId 发货单ID
     */
    public void setCentralBillDeliveryId(String centralBillDeliveryId) {
        this.centralBillDeliveryId = centralBillDeliveryId;
    }

    /**
     * 获取一级数据类型
     *
     * @return action_type - 一级数据类型
     */
    public ActionType getActionType() {
        return actionType;
    }

    /**
     * 设置一级数据类型
     *
     * @param actionType 一级数据类型
     */
    public void setActionType(ActionType actionType) {
        this.actionType = actionType;
    }

    /**
     * 获取一级数据ID
     *
     * @return action_id - 一级数据ID
     */
    public String getActionId() {
        return actionId;
    }

    /**
     * 设置一级数据ID
     *
     * @param actionId 一级数据ID
     */
    public void setActionId(String actionId) {
        this.actionId = actionId;
    }

    /**
     * 获取已撤销
     *
     * @return canceled - 已撤销
     */
    public Boolean getCanceled() {
        return canceled;
    }

    /**
     * 设置已撤销
     *
     * @param canceled 已撤销
     */
    public void setCanceled(Boolean canceled) {
        this.canceled = canceled;
    }

    /**
     * 获取记录版本
     *
     * @return version - 记录版本
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * 设置记录版本
     *
     * @param version 记录版本
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * 获取创建时间
     *
     * @return date_created - 创建时间
     */
    public Date getDateCreated() {
        return dateCreated;
    }

    /**
     * 设置创建时间
     *
     * @param dateCreated 创建时间
     */
    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    /**
     * 获取创建人员
     *
     * @return user_created - 创建人员
     */
    public String getUserCreated() {
        return userCreated;
    }

    /**
     * 设置创建人员
     *
     * @param userCreated 创建人员
     */
    public void setUserCreated(String userCreated) {
        this.userCreated = userCreated;
    }

    /**
     * 获取最后更新时间
     *
     * @return last_updated - 最后更新时间
     */
    public Date getLastUpdated() {
        return lastUpdated;
    }

    /**
     * 设置最后更新时间
     *
     * @param lastUpdated 最后更新时间
     */
    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    /**
     * 获取最后更新人员
     *
     * @return user_updated - 最后更新人员
     */
    public String getUserUpdated() {
        return userUpdated;
    }

    /**
     * 设置最后更新人员
     *
     * @param userUpdated 最后更新人员
     */
    public void setUserUpdated(String userUpdated) {
        this.userUpdated = userUpdated;
    }

    /**
     * 获取删除时间
     *
     * @return time_deleted - 删除时间
     */
    public Long getTimeDeleted() {
        return timeDeleted;
    }

    /**
     * 设置删除时间
     *
     * @param timeDeleted 删除时间
     */
    public void setTimeDeleted(Long timeDeleted) {
        this.timeDeleted = timeDeleted;
    }

    /**
     * 获取删除人员
     *
     * @return user_deleted - 删除人员
     */
    public String getUserDeleted() {
        return userDeleted;
    }

    /**
     * 设置删除人员
     *
     * @param userDeleted 删除人员
     */
    public void setUserDeleted(String userDeleted) {
        this.userDeleted = userDeleted;
    }
}